package com.starleague.battletech.unit.jpa.appengine;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

import com.starleague.battletech.unit.AbstractWeight;
import com.starleague.battletech.unit.IWeight;

@Embeddable
public class WeightGae
        extends AbstractWeight
{
    public WeightGae(double tons)
    {
        super(tons);
    }

    public WeightGae(IWeight weight)
    {
        super(weight);
    }

    protected WeightGae()
    {
        //
    }

    @Override
    @Basic(optional = false)
    @Column(nullable = false)
    public double getTons()
    {
        return super.getTons();
    }

    @Override
    protected void setTons(double tons)
    {
        super.setTons(tons);
    }
}
